package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 工单信息对象 a_workorder
 * 
 * @author ruoyi
 * @date 2025-09-11
 */
public class AWorkorder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 组织ID */
    @Excel(name = "组织ID")
    private String groupId;

    /** 工单号 */
    @Excel(name = "工单号")
    private String productionOrder;

    /** 生产部门 */
    @Excel(name = "生产部门")
    private String dept;

    /** 工艺路线 */
    @Excel(name = "工艺路线")
    private String processRoute;

    /** 工单状态 */
    @Excel(name = "工单状态")
    private String state;

    /** 工单类型 */
    @Excel(name = "工单类型")
    private String type;

    /** 成品料号 */
    @Excel(name = "成品料号")
    private String productCode;

    /** 成品描述 */
    @Excel(name = "成品描述")
    private String productDesc;

    /** 计划数量 */
    @Excel(name = "计划数量")
    private String qyt;

    /** 计划开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计划开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 计划结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计划结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 生产工厂 */
    @Excel(name = "生产工厂")
    private String productionPlant;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setGroupId(String groupId) 
    {
        this.groupId = groupId;
    }

    public String getGroupId() 
    {
        return groupId;
    }
    public void setProductionOrder(String productionOrder) 
    {
        this.productionOrder = productionOrder;
    }

    public String getProductionOrder() 
    {
        return productionOrder;
    }
    public void setDept(String dept) 
    {
        this.dept = dept;
    }

    public String getDept() 
    {
        return dept;
    }
    public void setProcessRoute(String processRoute) 
    {
        this.processRoute = processRoute;
    }

    public String getProcessRoute() 
    {
        return processRoute;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setProductCode(String productCode) 
    {
        this.productCode = productCode;
    }

    public String getProductCode() 
    {
        return productCode;
    }
    public void setProductDesc(String productDesc) 
    {
        this.productDesc = productDesc;
    }

    public String getProductDesc() 
    {
        return productDesc;
    }
    public void setQyt(String qyt) 
    {
        this.qyt = qyt;
    }

    public String getQyt() 
    {
        return qyt;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    public String getProductionPlant() {
        return productionPlant;
    }

    public void setProductionPlant(String productionPlant) {
        this.productionPlant = productionPlant;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("groupId", getGroupId())
            .append("productionOrder", getProductionOrder())
            .append("dept", getDept())
            .append("processRoute", getProcessRoute())
            .append("state", getState())
            .append("type", getType())
            .append("productCode", getProductCode())
            .append("productDesc", getProductDesc())
            .append("qyt", getQyt())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .toString();
    }
}
